package com.city.domain.party;

import javax.persistence.*;
import java.util.Objects;

/**
 * @deprecation: 干部出国，国内外家属登记
 * @dmail: 398521613@qq.com
 * @author: L-H
 * @date: 2018-07-18 13:14
 */
@Entity
@Table(name = "party_faborad_family", schema = "city", catalog = "")
public class PartyFaboradFamily {
    private int id;//主键
    private String faboradId;//干部出国申请关联字段，time
    private String name;//姓名
    private String relationship;//关系
    private String company;//工作单位
    private String time;//申请时间
    private String updateTime;
    private String domesticAborad;//国内国外



    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    @Column(name = "id")
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    @Basic
    @Column(name = "faborad_id")
    public String getFaboradId() {
        return faboradId;
    }

    public void setFaboradId(String faboradId) {
        this.faboradId = faboradId;
    }

    @Basic
    @Column(name = "name")
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Basic
    @Column(name = "relationship")
    public String getRelationship() {
        return relationship;
    }

    public void setRelationship(String relationship) {
        this.relationship = relationship;
    }

    @Basic
    @Column(name = "company")
    public String getCompany() {
        return company;
    }

    public void setCompany(String company) {
        this.company = company;
    }

    @Basic
    @Column(name = "time")
    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    @Basic
    @Column(name = "update_time")
    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }


    @Basic
    @Column(name = "domestic_aborad")
    public String getDomesticAborad() {
        return domesticAborad;
    }

    public void setDomesticAborad(String domesticAborad) {
        this.domesticAborad = domesticAborad;
    }


    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        PartyFaboradFamily that = (PartyFaboradFamily) o;
        return id == that.id &&
                faboradId == that.faboradId &&
                Objects.equals(name, that.name) &&
                Objects.equals(relationship, that.relationship) &&
                Objects.equals(company, that.company) &&
                Objects.equals(time, that.time) &&
                Objects.equals(updateTime, that.updateTime);
    }

    @Override
    public int hashCode() {

        return Objects.hash(id, faboradId, name, relationship, company, time, updateTime);
    }
}
